<%@ page 
	language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    import="bean.UserBean"
    import="model.UserIO"
    isELIgnored="false"
    %>

<% System.out.println("user_info.jsp: BEGIN"); %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Information</title>
</head>
<body>



//using jsp tags---
<jsp:useBean id="user" scope="request" class="bean.UserBean"></jsp:useBean>
<!-- <jsp:setProperty property="name" name="user"/>
<jsp:setProperty property="hobby" name="user"/> -->
user name: <jsp:getProperty property="name" name="user"/>
user hobby: <jsp:getProperty property="hobby" name="user"/>

//using EL---
${2-null + 1}

//---<br>
<!-- selected check box item: -->
<%--
 	String[] cbList = request.getParameterValues("cb");
 	if(cbList != null)	{
 		for(int i = 0; i < cbList.length; ++i)		{
 --%>
			<%--=cbList[i]--%>
<%--
				}
				}
			--%><br>

//---<br>
request method : <%=request.getMethod()%> <br>

<%-- 写入/WEB-INF/user_log.txt --%><br>
<%

%>

</body>
</html>